#ifndef __NVM_PARAM_H
#define __NVM_PARAM_H

#include "config.h"
#include "eeprom_emulation_type_a.h"

typedef struct
{
    uint16_t can_id;
    uint16_t position;
    uint8_t reserved[EEPROM_EMULATION_DATA_SIZE - 4];  // 填充到120字节
} nvmparam_t;

extern uint32_t NVM_Param_Init(uint32_t *data);//注意，返回值0是成功
extern void NVM_Param_Read(uint32_t *data);
extern void NVM_Param_Write(uint32_t *data);

#endif // __NVM_PARAM_H